﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SecList.aspx.cs" Inherits="Webcar.Sec.SecList" Title="无标题页" %>

<%@ Register Assembly="WebPager" Namespace="DevCenterNew" TagPrefix="cc1" %>

<%@ Register Src="../Controls/NaviBar.ascx" TagName="NaviBar" TagPrefix="uc1" %>
<%@ Register Src="../SearchPanel.ascx" TagName="SearchPanel" TagPrefix="uc2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title></title>
</head>
<script language = "javaScript" src ="../JavaScript/default.js" type="text/javascript"></script>

<body style="margin:0px 0px 0px 0px; padding:0px 1px 0px 1px; overflow-y:hidden">
    <form id="form1" runat="server">
    <div id="SecList">
        <uc1:NaviBar ID="NaviBar1" runat="server" />
        <div class="s">
        <uc2:SearchPanel ID="SearchPanel1" runat="server" OnSearchClick="Seach_Click" />
        </div>
        <asp:GridView ID="GridView1" runat="server" DataKeyNames="sec_no" AutoGenerateColumns="False" Width="100%" SkinID="gridviewSkin" OnRowDataBound="GridView1_RowDataBound">
            <Columns>
            <asp:TemplateField>
                        <ItemTemplate>
                        <div class = "nestedmenu">
                            <asp:Menu ID="DriverMenu" runat="server" Orientation="Vertical"  DisappearAfter="200">
                            <StaticMenuItemStyle CssClass="staticmenu" />
                            <StaticHoverStyle CssClass="staticmenuhover" />
                             <DynamicMenuItemStyle CssClass="dynamicmenu" />
                             <DynamicHoverStyle CssClass="dynamicmenuhover" />
                                <Items>
                                    <asp:MenuItem Text="操作" NavigateUrl="#" Value="操作">
                                        <asp:MenuItem Text="编辑事故信息" Value="编辑" />
                                        <asp:MenuItem Text="事故结案" Value="结案" />
                                        <asp:MenuItem Text="打印结案通知书" Value="结案通知" />
                                        
                                        <asp:MenuItem Text="查看对应保险单" Value="保险"/>
                                        <asp:MenuItem Text="事故照片" Value="照片"/>
                                        <asp:MenuItem Text="删除事故信息" Value="删除"/>
                                        
                                    </asp:MenuItem>
                                </Items>
                            </asp:Menu>
                         </div>
                        </ItemTemplate>
                    </asp:TemplateField>
                 <asp:TemplateField>
                        <ItemTemplate>
                            <asp:Image ID="Image1" ImageUrl="~/App_Themes/Default/image2/newpost2.gif" runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>
                
                <asp:TemplateField HeaderText="所属单位">
                    <ItemTemplate>
                        <asp:HyperLink ID="linkDeptName" ToolTip="点击查看该单位的所有事故记录" runat="server" NavigateUrl="" Text='<%# Eval("dept_name2") %>'></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                
                <asp:TemplateField HeaderText="驾驶员">
                    <ItemTemplate>
                        <asp:HyperLink ID="linkDriver" ToolTip="点击查看该驾驶员的所有事故记录" runat="server" NavigateUrl="" Text='<%# Eval("driver_name") %>'></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                
                <asp:TemplateField HeaderText="车号">
                    <ItemTemplate>
                        <asp:HyperLink ID="linkRecordNo" ToolTip="点击查看该车的所有事故记录" runat="server" NavigateUrl="" Text='<%# Eval("record_no") %>'></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="job_name" HeaderText="用工类别" />
                
                <asp:BoundField DataField="loss_money" HeaderText="损失金额" />    
                <asp:BoundField DataField="sec_date_str" HeaderText="事故日期" />               
                <asp:BoundField DataField="sec_type_cn" HeaderText="事故程度" />
                <asp:BoundField DataField="sec_kind_cn" HeaderText="事故类型" />
                
                
                <asp:TemplateField HeaderText="事故地点">
                    
                    <ItemTemplate>
                        <asp:Label ID="lblPlace" runat="server" Text='<%# Bind("SEC_PLACE") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="is_end_cn" HeaderText="结案" />
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:HyperLink ID="hlView" ToolTip="点击查看事故记录详细" runat="server" NavigateUrl="" Text='查看'></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                
                
            </Columns>
        </asp:GridView>
        <div class="pager">
            <div class="addsec">
                  [<asp:LinkButton ID="linkPrint" runat="server" Text="查看打印页" OnClick="linkPrint_Click"></asp:LinkButton>]
                <asp:HyperLink ID="HyperLink1" NavigateUrl="" runat="server">增加安全事故</asp:HyperLink>
                 <asp:CheckBox ID="cbNew" runat="server" Text = "查看新安全事故"  />
            </div>
            <div class="p">
                <cc1:WebPager Width="400px" ID="WebPager1" runat="server" DisplayText="<span style='color: black'>第{0}页&nbsp共{1}页&nbsp总计{2}条&nbsp每页{3}条</span>"  />
            </div>
        </div>
    </div>    
    </form>
</body>
</html>

